// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ScrapRecord : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ScrapRecord, MasterDbContextLocator>
    {

        public int ScrapId { get; set; }
        public string ScrapCode { get; set; }
        public string AreaName { get; set; }
        public string Extension { get; set; }
        public string GensetNum { get; set; }
        public string ScrapPerson { get; set; }
        public string ScrapPersonPhone { get; set; }
        public string ScrapPlace { get; set; }
        public DateTime? ScrapDate { get; set; }
        public string ScrapPicture { get; set; }
        public string ScrapDescription { get; set; }
        public string AuditPerson { get; set; }
        public DateTime? AuditDate { get; set; }
        public DateTime? CreateDate { get; set; }
        public string CreatePerson { get; set; }
        public DateTime? EditDate { get; set; }
        public string EditPerson { get; set; }
        public bool? IsAudited { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
    
        public void Configure(EntityTypeBuilder<ScrapRecord> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.ScrapId)
                    .HasName("PK__ScrapRec__86CBB8AA9DF1BB9A");

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.AuditDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.AuditPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.CreateDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.CreatePerson).HasMaxLength(20);

                entityBuilder.Property(e => e.EditDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.EditPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.Extension).HasMaxLength(20);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.IsAudited).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(20);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.ScrapCode).HasMaxLength(128);

                entityBuilder.Property(e => e.ScrapDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.ScrapDescription).HasMaxLength(1000);

                entityBuilder.Property(e => e.ScrapPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.ScrapPersonPhone).HasMaxLength(20);

                entityBuilder.Property(e => e.ScrapPicture).HasMaxLength(100);

                entityBuilder.Property(e => e.ScrapPlace).HasMaxLength(100);
        }

    }
}

